<template>
    <div>
        <h1>page02 {{ params.num }}</h1>
    </div>
</template>

<script setup>
import {useRoute} from 'vue-router'
const route = useRoute()
const {params} = route
console.log('page2提取动态参数',params)
</script>

<style lang="scss" scoped>

</style>